package com.example.coupon.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 通用响应对象定义
 * @author wangbo
 * @description:
 * @date 2021/2/110:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResponse<T> implements Serializable {

    private Integer code;

    private String msg;

    private T data;

    public CommonResponse(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}

